package uy.edu.ucu.isIII2008.ejercicioGC.tests;

import uy.edu.ucu.isIII2008.ejercicioGC.Main;
import junit.framework.TestCase;

public class MainTest extends TestCase {

	public void testSimple() throws Exception{
		assertEquals(7.0, Main.exec("1+2*3"));
		assertEquals(5.0, Main.exec("1*2+3"));
		assertEquals(9.0, Main.exec("(1+2)*3"));
		assertEquals(1.0+2.0/3.0, Main.exec("1+2/3"));
		assertEquals(0.5, Main.exec("1.5/3"));
	}
	
}
